<template>
	<view class="about-us-wrapper full box relative flex column p-safe">
		<view class="w-100" :style="{height: statusBarHeight_}"></view>
		<view class="nav-header w-100">
			<text>关于我们</text>
		</view>
		<view class="relative flex-1 box w-100 wrap-inner">
			<view class="absolute inset">
				<scroll-view class="full" scroll-y>
					<view class="html-wrap">
						<u-parse :content="content" />
					</view>
				</scroll-view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		created() {
			this.initData()
		},
		methods: {
			async initData() {
				const resp = await this.$request({
					url: "/index/getAboutUs",
				})
				const { code, data, msg } = resp
				if (code !== 1) return this.$toast({ title: msg }, () => {
					uni.navigateBack()
				})
				const { content } = data
				this.content = content
				console.log(resp, 'resp');
			},
		},
		computed: {},
		data() {
			return {
				content: '',
			}
		}
	}
</script>

<style lang="scss" scoped>
	.about-us-wrapper {
		background: linear-gradient(11deg, #EEF5FF 0%, #D1E2FE 100%);

		.wrap-inner {
			margin-top: 24rpx;
		}

		.html-wrap {
			font-size: 24rpx;
			color: rgba(0, 0, 0, 0.6);
			line-height: 40rpx;
			padding: 0 32rpx;
		}

		.nav-header {
			display: flex;
			align-items: center;
			justify-content: center;
			height: 88rpx;
			font-size: 32rpx;
			font-weight: bold;
			color: rgba(0, 0, 0, 0.9);
		}
	}
</style>